for number in range(100,1000):
    a=number//100
    b=(number//10)%10
    c=number%10
    all=a**3+b**3+c**3
    if number==all:
        print(number)
